//package com.lqfan.autoAnswerQ.service.user.impl;
//
//
//import com.auth0.jwt.JWT;
//import com.auth0.jwt.algorithms.Algorithm;
//import com.lqfan.autoAnswerQ.model.user.User;
//import org.springframework.stereotype.Service;
//
//import java.util.Date;
//
///**
// * token下方
// *
// * @author ZML
// * @since 2020/4/9
// */
//
//@Service
//public class IUserServiceImpl {
////    public String getToken(User user){
////        Date start = new Date();
////        long currentTime = System.currentTimeMillis() +24*60*60*1000;//一天有效时间
////        Date end = new Date(currentTime);
////        String token = "";
////        token = JWT.create().withAudience(user.getId()).withIssuedAt(start).withExpiresAt(end)
////                .sign(Algorithm.HMAC256(user.getPassword()));
////
////        return token;
////    }
//}
